# 用java8运行，这一步会pull镜像
FROM williamyeh/java8
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV APP_PATH=/apps
WORKDIR $APP_PATH
ADD ./crud/target/*.jar $APP_PATH/apps.jar
EXPOSE $EXPOSE_PORT
ENTRYPOINT ["java","-jar"]
CMD ["apps.jar"]
